# NOT RUN {
## The function is currently defined as
function (a = "NIR", b = "Red", Pixel.Depth)
{
name=MSAVI(a,b,Pixel.Depth=null)
areaXY <-c(xmin, xmax, ymin, ymax)
cropXY <- crop(name, areaXY)
plot(cropXY,lwd=4, main="MSAVI",
xlab="easting", ylab="northing")
hist(cropXY,
main="MSAVI",
xlab="MSAVI",col="red", ylab="Frequency of Pixels")
}
# }
Run the code above in your browser using DataLab